Skip to content

Move some qQTLR functions back to pecotmr for more general interests#472

Merged
danielnachun merged 6 commits intomainfrom
qqtlr-dep-refactor-base
Apr 18, 2026
Merged

Move some qQTLR functions back to pecotmr for more general interests#472
danielnachun merged 6 commits intomainfrom
qqtlr-dep-refactor-base

Conversation

@gaow
Copy link
Copy Markdown
Contributor

@gaow gaow commented Apr 18, 2026

Rename along the move to make it more informative.

danielnachun and others added 5 commits April 18, 2026 12:46
Extracted from qQTLR's quantile_twas_weight.R to let qQTLR (and other
downstream packages) consume these as library code instead of carrying
their own copies. Four new helpers live in R/LD.R:

- ld_prune_by_correlation (exported): hclust/cutree-based |cor| prune
- enforce_design_full_rank (exported): QR-pivot iterative rank enforcement
  with a ld_prune_by_correlation fallback
- drop_collinear_columns (internal): strategy-based single-column removal
  helper used by enforce_design_full_rank
- ld_clump_by_score (exported): thin wrapper around bigsnpr::snp_clumping
  that handles FBM.code256 conversion and single-variant edge case

All message() calls now gated behind verbose = FALSE (default silent).
bigsnpr and bigstatsr added to Suggests; both use requireNamespace guards.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Small internal helper so pecotmr::twas_pipeline and
qQTLR::quantile_twas_pipeline produce byte-identical per-(context, study)
rows from twas_analysis() output. No new export, no NAMESPACE churn.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@danielnachun danielnachun force-pushed the qqtlr-dep-refactor-base branch from ff0f8a7 to d0b20bb Compare April 18, 2026 19:47
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2026

Codecov Report

❌ Patch coverage is 75.94937% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.61%. Comparing base (0517999) to head (c085d47).
⚠️ Report is 1038 commits behind head on main.

Files with missing lines Patch % Lines
R/LD.R 74.49% 38 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #472       +/-   ##
===========================================
+ Coverage   27.48%   83.61%   +56.12%     
===========================================
  Files          32       35        +3     
  Lines        4377     6682     +2305     
===========================================
+ Hits         1203     5587     +4384     
+ Misses       3174     1095     -2079     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielnachun danielnachun merged commit 4843e8b into main Apr 18, 2026
7 checks passed
@gaow gaow deleted the qqtlr-dep-refactor-base branch April 19, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants